﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;
using DAL;

namespace BUS
{
    public class BUS_MatHang
    {
        public DataTable showmathang()
        {
            DAL_MatHang dao = new DAL_MatHang();
            return dao.showmathang();
        }
        public void insertmathang(string mmh, string tmh, string sl, string nsx, string gm, string gb, string mancc, string hinhanh)
        {
            DAL_MatHang dao = new DAL_MatHang();
            dao.insertmathang(mmh, tmh,sl,nsx,gm,gb,mancc,hinhanh);
        }
        public DataTable tkhangtheoma(string dk)
        {
            DAL_MatHang dao = new DAL_MatHang();
            return dao.tkhangtheoma(dk);
        }

        public DataTable tkhangtheoten(string dk)
        {
            DAL_MatHang dao = new DAL_MatHang();
            return dao.tkhangtheoten(dk);
        }

        public DataTable tkhangtheogia(string dk)
        {
            DAL_MatHang dao = new DAL_MatHang();
            return dao.tkhangtheogia(dk);
        }
        public void deletemathang(string mmh)
        {
            DAL_MatHang dao = new DAL_MatHang();
            dao.deletemathang(mmh);
        }

        public void suamathang(string mmh1, string mmh, string tmh, string sl, string nsx, string gm, string gb)
        {
            DAL_MatHang dao = new DAL_MatHang();
            dao.suamathang(mmh1, mmh, tmh, sl, nsx, gm, gb);
        }
        public void Dangnhap(string user, string pass)
        {
            DAL_MatHang dao = new DAL_MatHang();
            dao.Dangnhap(user, pass);
        }
    }
}
